import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
//import index from '../components/index'
// 按需导入
const index = ()=> import('../components/index')


export default new Router({
  routes: [
    { path : '/', redirect: '/index' },
    { path : '/index', component : index }
  ]
})
